<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
        integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
    <title>编辑日记</title>
</head>
<body>
    <h1>编辑日记</h1>
    <form action="/htDiary/<%= htdiary._id%>?_method=PUT" method="POST">
        <label for="date">日期</label>
        <input type="date" name = "date" id="date" value="<%= htdiary.date%>">
        <label for="content">内容</label>
        <input type="text" name = "content" id="content" placeholder="内容" value="<%= htdiary.content%>">
        <label for="explain">解释</label>
        <input type="text" name = "explain"id="explain" placeholder="解释" value="<%= htdiary.explain%>">
        <label for="ytcomment">摇头评论</label>
        <input type="text" name = "ytcomment"id="ytcomment" placeholder="垚头评论" value="<%= htdiary.ytcomment%>">
        <label for="ptcomment">盆头评论</label>
        <input type="text" name = "ptcomment"id="ptcomment" placeholder="盆头评论" value="<%= htdiary.ptcomment%>">
        <label for="lsycomment">鱼头评论</label>
        <input type="text" name = "lsycomment"id="lsycomment" placeholder="鱼头评论" value="<%= htdiary.lsycomment%>">
        <label for="ztcomment">猪头评论</label>
        <input type="text" name = "ztcomment"id="ztcomment" placeholder="猪头评论" value="<%= htdiary.ztcomment%>">
        <label for="ltcomment">梁头评论</label>
        <input type="text" name = "ltcomment"id="ltcomment" placeholder="梁头评论" value="<%= htdiary.ltcomment%>">
        <button>提交</button>
    </form>
    <a href="/htDiary/<%= htdiary._id%>">取消编辑</a>
</body>
</html>